<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<div class="article">
    <h1><input type="text" class="title" value="<?php echo $article->title; ?>" /></h1>
    <div class="articleBody">
    	<textarea class="editArea" name="inhoud" id="inhoud" tag="<?php if(isset($article->article_id)) { echo $article->article_id; } ?>">
    	<?php echo $article->body; ?>
        </textarea>
    </div>
    <pre>
    <?php //print_r($article); ?>
    </pre>
    <fieldset>
    <legend>Artikel opties</legend>
    	<form>
        	<table>
            	<tr>
                	<td><label for="publiceren">Publiceren</label></td>
                	<td>
                    	<select name="publiceren">
                            <option>Auto</option>
                            <option>Yes</option>
                            <option>No</option>
                        </select>
                    </td>
				</tr>
                <tr>
                	<td><label for="from">van</label></td>
                	<td><input type="datetime" name="from" value="<?php echo $article->published_start; ?>"/></td>
				</tr>
                <tr>
                	<td><label for="to">tot</label></td>
                	<td><input type="datetime" name="to" value="<?php echo $article->published_end; ?>"/></td>
				</tr>
            </table>
            <table>
                <tr>
                	<td><input name="showCreated" type="checkbox" value="true" <?php if(isset($article->showCreated) && $article->showCreated) echo "checked='checked'"; ?>/></td>
                	<td><label for="showCreated">Toon aanmaakdatum</label></td>
				</tr>
                <tr>
                	<td><input name="showCreator" type="checkbox" value="true" <?php if(isset($article->showCreator) && $article->showCreator) echo "checked='checked'"; ?>/></td>
                	<td><label for="showCreator">Toon aanmaker</label></td>
				</tr>
                <tr>
                	<td><input name="showLastEdit" type="checkbox" value="true" <?php if(isset($article->showLastEdit) && $article->showLastEdit) echo "checked='checked'"; ?> /></td>
                	<td><label for="showLastEdit">Toon datum laatste bewerking</label></td>
				</tr>
                <tr>
                	<td><input name="showLastEditor" type="checkbox" value="true" <?php if(isset($article->showLastEditor) && $article->showLastEditor) echo "checked='checked'"; ?>/></td>
                	<td><label for="showLastEditor">Toon laatste bewerker</label></td>
				</tr>
            </table>
        </form>
    </fieldset>
</div>
<input type="button" class="saveArticle" tag="<?php if(isset($article->article_id)) { echo $article->article_id; } ?>" value="Opslaan"/>